<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Hello MUI</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="import" href="../header.html" id="page1">
		<!--标准mui.css-->
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="../../css/app.css"/>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">列表带input类控件</h1>
		</header>
		<div class="mui-content" id="rrapp">
			<div class="mui-card">
				<ul class="mui-table-view">
					<li v-for="item in tkList" class="mui-table-view-cell mui-checkbox mui-left">
						<input name="checkbox" type="checkbox">{{item.name}}
					</li>
				</ul>
				<div class="mui-button-row" style="margin-bottom: 0.625rem;">
					<button type="button" class="mui-btn mui-btn-primary" @click="save">确认</button>&nbsp;&nbsp;
					<button type="button" class="mui-btn mui-btn-danger" @click="fh">返回</button>
				</div>
			</div>
		</div>
	</body>
	<script>
		mui.init({
			swipeBack:true //启用右滑关闭功能
		});
		
		var vm = new Vue({
				el:'#rrapp',
				data:{
					showList: true,
					title: null,
					tkList: [], //田块集合
					
				},
				methods: {
					getm: function () {
						mui.ajax(baseUrl + '/buss/bussfarmlandinfo/list', {
							data: {
							},
							dataType: 'json', //服务器返回json格式数据
							type: 'get', //HTTP请求类型
							success: function(data) {
								//获得服务器响应
								vm.tkList = data.page.list;
							}
						});
					},
					save(){
						
					},
					fh:function(){
					   console.log('返回')
 					   mui.openWindow({
						url: "indexxjadd.html",
						createNew:false,
						extras:{
							name:'mui1',
						}
						});
					}
				},
				mounted:function(){
                    //接收值
					/* var self = plus.webview.currentWebview();
					var name = self.name;
					var version = self.version; */
					this.getm();
				}
	});
					
		
	</script>
</html>